<?php
/**
 * Smart Library - Smart Framework
 * http://smart-framework.highet.eu
 *
 * @category   SmartL
 * @package    SmartL_Application
 * @subpackage Config
 * @copyright  Copyright (c) 2005-2008 Smart Framework team - Stepan Sindelar, Vojtech Vit
 * @license    http://www.opensource.org/licenses/bsd-license.php	New BSD License
 */

/**
 * Holds informations about module: name, controllers dir and views dir. 
 * 
 * @todo 23: Předělat podle vzoru "hodnotový typ - neměnná"
 * 
 * @package SmartL_Application
 * @subpackage Config
 */
class SmartL_Application_Config_ModuleInfo {
	private $_name;
	private $_controllersDir;
	private $_viewsDir;
	
	/**
	 * Returns module name.
	 *
	 * @return string Module name
	 */
	public function getName() {
		return $this->_name;
	}
	/**
	 * Sets module name.
	 *
	 * @param string $value New module name
	 */
	public function setName($value) {
		$this->_name = $value;
	}
	/**
	 * Returns relative path to module controllers directory from project base dir.
	 *
	 * @return string Controllers directory path
	 */
	public function getControllersDir() {
		return trim ( $this->_controllersDir, '\\/' );
	}
	/**
	 * Sets relative path to module controllers directory from project base dir.
	 *
	 * @param string $value New controllers directory path
	 */
	public function setControllersDir($value) {
		$this->_controllersDir = $value;
	}
	/**
	 * Returns relative path to module views directory from project base dir.
	 *
	 * @return string Views directory path
	 */
	public function getViewsDir() {
		return trim ( $this->_viewsDir, '\\/' );
	}
	/**
	 * Sets relative path to module views directory from project base dir.
	 *
	 * @param string $value New views directory path
	 */
	public function setViewsDir($value) {
		$this->_viewsDir = $value;
	}
}